package com.weibo.view.composite;

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;

import swing2swt.layout.BorderLayout;

public abstract class BaseComposite extends Composite{
	
	private InputWeiboComposite text;
	
	public BaseComposite(Composite parent, int style) {
		super(parent, style);init();
	}
	
	private void init(){
		setLayoutData(BorderLayout.CENTER);
		setLayout(new BorderLayout(0, 0));
		text = new InputWeiboComposite(this, SWT.BORDER);
		text.setLayoutData(BorderLayout.NORTH);
	}
	
	public abstract void paint();
	
	public InputWeiboComposite getText(){
		return this.text;
	}
}
